00 - Save memory pool and script stack state, load level script, and call script
00 10 [nn nn] [ss ss ss ss] [ee ee ee ee] [aa aa aa aa]
[2 -3 ] Segment number to load to
[4 -7 ] ROM start address
[8 -11] ROM end address
[12-15] Segmented address to call

                 -------------------------------------------

01 - Roll back memory pool, load segment, and jump
01 10 [nn nn] [ss ss ss ss] [ee ee ee ee] [aa aa aa aa]
[2 -3 ] Segment number to load to
[4 -7 ] ROM start address
[8 -11] ROM end address
[12-15] Segmented address to jump to

                 -------------------------------------------

02 - Restore memory pool and script stack state and return
02 04 xx xx

                 -------------------------------------------


03 - Delay
03 04 [nn nn]
[2 -3 ] Number of frames to delay


                 -------------------------------------------

04 - Delay, but different (halt the script)
04 04 [nn nn]
[2 -3 ] Number of frames to delay

                 -------------------------------------------

05 - Jump
05 08 xx xx [aa aa aa aa]
[4 -7 ] Segmented address to jump to

                 -------------------------------------------

06 - Call
06 08 xx xx [aa aa aa aa]
[4 -7 ] Segmented address to call

                 -------------------------------------------

07 - Return
07 04 xx xx

                 -------------------------------------------

08

                 -------------------------------------------

09

                 -------------------------------------------

0A

                 -------------------------------------------

0B

                 -------------------------------------------

0C - Conditional branch
0c 0c [cc] xx [nn nn nn nn] [aa aa aa aa]
[2    ] Condition type
[4 -7 ] Value to compare to
[8 -11] Segmented address to jump to if the condition is met

                 -------------------------------------------

0D

                 -------------------------------------------

0E

                 -------------------------------------------

0F

                 -------------------------------------------

10

                 -------------------------------------------

11

                 -------------------------------------------

12

                 -------------------------------------------

13 - Set value
13 04 [nn nn]
[2 -3 ] Value

                 -------------------------------------------

14

                 -------------------------------------------

15

                 -------------------------------------------

16

                 -------------------------------------------

17 - Load data to the memory pool and and set segment table
17 0c [nn nn] [ee ee ee ee] [aa aa aa aa]
[2 -3 ] Segment number to load to
[4 -7 ] ROM start address
[8 -11] ROM end address

                 -------------------------------------------

18 - Load compressed data to the memory pool and set segment table
18 0c [nn nn] [ee ee ee ee] [aa aa aa aa]
[2 -3 ] Segment number to load to
[4 -7 ] ROM start address
[8 -11] ROM end address

                 -------------------------------------------

19

                 -------------------------------------------

1A - Load compressed data to 0x801c1000 and set segment table
1a 0c [nn nn] [ee ee ee ee] [aa aa aa aa]
[2 -3 ] Segment number to load to
[4 -7 ] ROM start address
[8 -11] ROM end address

                 -------------------------------------------

1B

                 -------------------------------------------

1C

                 -------------------------------------------

1D

                 -------------------------------------------

1E

                 -------------------------------------------

1F - Begin area and set geometry layout
1f 08 [nn] xx [aa aa aa aa]
[2    ] Area number
[4 -7 ] Segmented address of the level's geometry layout

                 -------------------------------------------

20

                 -------------------------------------------

21

                 -------------------------------------------

22 - Decode geometry layout and assign ID number
22 08 [ii ii] [aa aa aa aa]
[2 -3 ] ID number
[4 -7 ] Segmented address of the geometry layout to decode

                 -------------------------------------------

23

                 -------------------------------------------

24

                 -------------------------------------------

25

                 -------------------------------------------

26

                 -------------------------------------------

27

                 -------------------------------------------

28

                 -------------------------------------------

29

                 -------------------------------------------

2A

                 -------------------------------------------

2B

                 -------------------------------------------

2C

                 -------------------------------------------

2D

                 -------------------------------------------

2E

                 -------------------------------------------

2F

                 -------------------------------------------

30

                 -------------------------------------------

31

                 -------------------------------------------

32

                 -------------------------------------------

33

                 -------------------------------------------

34 - Screen blackout
34 04 [bb] xx
[2    ] Blacks out the screen if zero

                 -------------------------------------------

35

                 -------------------------------------------

36

                 -------------------------------------------

37

                 -------------------------------------------

38

                 -------------------------------------------

39

                 -------------------------------------------

3A

                 -------------------------------------------

3B

                 -------------------------------------------

3C - Get/set remote value
3c 04 [bb] [nn]
[2    ] Get if zero; put otherwise
[3    ] Which remote value
